﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebSystem
{
    public partial class TeacherSelTea : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        protected void Page_PreInit(object sender, EventArgs e)
        {
            if (Session["Theme"] == "1")
            {
                Page.Theme = "1";
            }
            else if (Session["Theme"] == "3")
            {
                Page.Theme = "3";
            }

            else
            {
                Page.Theme = "2";
            }
        }
        protected void btnTea_Click(object sender, EventArgs e)
        {
            string strSql = "SELECT  Tno,Tname, Sex, Dno,Dept  FROM      Teacher WHERE   (Tno = @Tno)";
            SqlDataSource2.SelectCommand = strSql;
            GridView1.DataSourceID = "SqlDataSource2";
            GridView1.DataBind();
        }
    }
}